package com.jinly.ryder.manage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinly.ryder.manage.service.model.AppInstance;
import com.jinly.ryder.manage.service.model.DeployStatus;

import java.util.List;

public interface AppInstanceService {

    List<AppInstance> list(String appName, String deployGroupName);

    void save(AppInstance appInstance);

    AppInstance get(Integer appInstanceId);

    void updateDeployStatus(Integer instanceId, DeployStatus deployStatus);

    Page<AppInstance> instancePage(Page page, AppInstance query);
}
